package com.wesley.strategy;

/**
 * @author:wesley
 */
public class StrategyClient {

    public static void main(String[] args){

//        Apple apple = new Apple(12.12, new AeightPrice());
        Apple apple = new Apple(12.12, new NinePriceStrategy());

        System.out.println("原价："+apple.getPrice());
        System.out.println("折后价格："+apple.getRealPrice());


    }


}
